var movieRowCount = 0;

var fadeBack = function(){
    (function(){
        this.morph({
            'background-color' : "#FFFFFF",
            duration : 0
        });
    }).delay(0, this);

}

var fadeForward = function(){

        this.morph({
            'background-color' : "#6789AB",
            duration : 0
        });
}

var blitz = function(){
    var delayTime = 0;
    $each($$('.movieRow'), function(row){
        
        (function(){
            this.fireEvent('mouseenter');
            this.fireEvent('mouseleave');
        }).delay(delayTime, row);
        
        delayTime += 0;
    });
}

window.addEvent('domready', function(){
    
    $each($$('.movieRow'), function(row){
        
        //Make sure the row is mootool'ed
        row = $(row);
        
        //When the mouse goes over a row
        row.addEvent('mouseenter', fadeForward.bind(row));
        
        //When a mouse leaves a row
        row.addEvent('mouseleave', fadeBack.bind(row));
        
        //row.addEvent('click', reportMovie.pass(row.getProperty('id')))
        
        movieRowCount++;
    });
});